home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13255 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.eiffel,comp.lang.c,comp.lang.c++,comp.object,comp.software-eng
  4. Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
  5. Date: 24 Mar 1996 07:27:01 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4j3pk5INN59u@keats.ugrad.cs.ubc.ca>
  8. References: <1995Jul3.034108.4193@rcmcon.com> <jmaling-2303960413010001@slwol1p47.ozemail.com.au> <4iv933INN7f2@keats.ugrad.cs.ubc.ca> <4j2dgp$ik5@news4.digex.net>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4j2dgp$ik5@news4.digex.net>, Ell <ell@access1.digex.net> wrote:
  12.  >Kazimir Kylheku (c2a192@ugrad.cs.ubc.ca) wrote:
  13.  >: You can benefit from 
  14.  >: OO approaches even ifyou use languages like C and Modula 2. You don't need 
  15.  >: the
  16.  >: extra linguistic frills to benefit from the useful concepts of the paradigm.
  17.  >
  18.  >You need the polymorphic tools of oopls to most easily exercise the oo
  19.  >polymorphism you need for good modelling. 
  20.  
  21. I'd tend to agree. The key word, of course, is _easily_, which doesn't rule out
  22. the exercise of polymorphism in C.
  23.  
  24. I drag a small bulk of reusable C code from environment to environtment: a list
  25. module, extendible hashing and so on. These I can use to store objects of any
  26. data type.
  27.  
  28. If I wanted run-time typing, I'd assign integral type codes (symbolically named
  29. after the types) to all data structures, and push these around explicitly.
  30.  
  31.  >Elliott
  32.  
  33.  
  34. -- 
  35.  
  36.